package com.dq.service.finance;

import com.dq.exception.customException.AdminException;
import com.dq.controller.in.RewardQuery;
import com.dq.vo.Vo;
import com.dq.domain.org.Org;
import com.dq.domain.reward.Reward;

import java.util.List;

/**
 * @author liuhui
 * @date 2019/11/28 0028 15:18:12
 */
public interface RewardService {
    List<Reward> findByWhere(RewardQuery rewardQuery, Org org)throws AdminException;
    Long countByWhere(RewardQuery rewardQuery,Org org)throws AdminException;
    Vo add(Long orgId,Long staffUserId,Reward reward)throws AdminException;
    Vo edit(Long orgId,Long staffUserId,Reward reward)throws AdminException;
    Vo delete(Long id)throws AdminException;
}
